package com.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 知识百科词条表
 * </p>
 *
 * @author ckick
 * @since 2025-09-20 09:29:27
 */
@Getter
@Setter
@TableName("entries")
public class Entries {

    /**
     * 词条唯一标识符
     */
    @TableId(value = "entry_id", type = IdType.AUTO)
    private Integer entryId;

    /**
     * 词条标题
     */
    @TableField("entry_name")
    private String entryName;

    /**
     * 词条来源说明
     */
    @TableField("source")
    private String source;

    /**
     * 词条详细内容
     */
    @TableField("description")
    private String description;

    /**
     * 所属分类ID
     */
    @TableField("category_id")
    private Integer categoryId;

    /**
     * 发布用户ID
     */
    @TableField("publisher_id")
    private Integer publisherId;

    /**
     * 审核状态
     */
    @TableField("status")
    private String status;

    /**
     * 创建时间
     */
    @TableField("created_at")
    private Date createdAt;

    /**
     * 浏览次数
     */
    @TableField("views")
    private Integer views;

    /**
     * 点赞数量
     */
    @TableField("likes")
    private Integer likes;

    /**
     * 收藏数量
     */
    @TableField("collects")
    private Integer collects;

    @TableField(exist = false)
    private Users user;

    @TableField(exist = false)
    private Categories categories;
}
